<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 数据驱动视图 
        let arr = [
            {id: 1},
            {id: 4},
        {id: 8}
        ];

        
       arr = arr.filter(function (item) {
           return item.id !== 8
       });
       console.log(arr)
    </script>
</body>
</html>